package com.service.lotterySystem.service;

import com.service.config.utils.Result;
import com.service.lotterySystem.dto.AddressDto;
import com.service.lotterySystem.dto.ReceiveAddressDto;
import com.service.lotterySystem.dto.UserDto;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author ：hjl
 * @date ：Created in 2022/01/11 17:33
 * @description：
 */
public interface AddressService {
    /**
     * 查询用户下所有收货地址
     * @param uid
     * @return
     */
    public List<ReceiveAddressDto> queryAddressByUid(String uid);

    /**
     * 新增收货地址
     * @param addressDto
     * @return
     */
    Result addAddress(AddressDto addressDto);

    /**
     * 编辑收货地址
     * @param addressDto
     * @return
     */
    Result updateAddress(AddressDto addressDto);

    /**
     * 删除收货地址
     * @param addressId
     * @return
     */
    Result deleteById(String addressId);

    Result defaultAddress(String userId,String addressId);

    List<ReceiveAddressDto> queryPrizedUserAddressByAid(String aid);
}
